package com.liked.controller;

import com.common.result.Result;
import com.liked.service.CollectRecordService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 路亚
 * @version 0.1
 * @className CollectRecordController
 * @description
 * @date 2024/12/31 19:14
 * @since jdk11
 */
@RestController
@RequiredArgsConstructor
@Slf4j
@RequestMapping("/collect/record")
public class CollectRecordController {

    private final CollectRecordService collectRecordService;

    @PostMapping("/add")
    public Result add(Long videoItemId){
        collectRecordService.add(videoItemId);
        return Result.success();
    }
}
